* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #77baf3;
    --primary-light: #4895ef;
    --secondary: #71e1f1;
    --accent: #c690f5;
    --success: #4cc9f0;
    --text: #333333;
    --text-light: #6c757d;
    --bg: #f8f9fb;
    --card-bg: #ffffff;
    --border: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.08);
    --hover-shadow: rgba(67, 97, 238, 0.15);
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.home-page {
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* 导航栏美化 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "📚";
    font-size: 28px;
}

.el-menu {
    background: transparent !important;
    border: none !important;
}

.el-menu--horizontal > .el-menu-item {
    color: rgba(255, 255, 255, 0.85) !important;
    height: 70px;
    line-height: 70px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: none !important;
}

.el-menu--horizontal > .el-menu-item:not(.is-active):hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.el-menu--horizontal > .el-menu-item.is-active {
    color: white !important;
    font-weight: 600;
}

.el-menu--horizontal > .el-menu-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.auth-buttons > .el-button {
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.auth-buttons > .el-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 轮播图区域美化 */
.carousel-wrapper {
    margin: 30px 40px 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.banner-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-desc {
    font-size: 16px;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 功能区域美化 */
.feature-section {
    margin: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.feature-section:hover {
    transform: translateY(-5px);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px var(--hover-shadow);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 220px;
}

/* 学习进度区域 */
.progress-section {
    margin: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow);
}

.progress-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.progress-card {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.progress-card:nth-child(2) {
    background: linear-gradient(135deg, var(--accent) 0%, #cc46b8 100%);
    box-shadow: 0 8px 20px rgba(114, 9, 183, 0.3);
}

.progress-card:nth-child(3) {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    box-shadow: 0 8px 20px rgba(76, 201, 240, 0.3);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-size: 18px;
    font-weight: 600;
}

.progress-icon {
    font-size: 28px;
}

.progress-value {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
}

.progress-text {
    font-size: 14px;
    opacity: 0.9;
}

/* 热门课程区域 */
.course-section {
    margin: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.course-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--hover-shadow);
    border-color: var(--primary-light);
}

.course-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.course-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.el-button.course-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.el-button.course-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* 底部区域 */
.footer {
    margin: 60px 40px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .progress-container {
        flex-direction: column;
    }

    .navbar {
        padding: 0 20px;
    }

    .carousel-wrapper,
    .feature-section,
    .progress-section,
    .course-section {
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }

    .el-menu--horizontal > .el-menu-item {
        font-size: 14px;
        padding: 0 12px;
    }

    .banner-title {
        font-size: 22px;
    }

    .banner-desc {
        font-size: 14px;
    }

    .footer {
        flex-direction: column;
        gap: 30px;
    }
}
